﻿/****************
* Creat Date: 2020/08/20 11:00:07
* Creator: Quick.CodeGenerator
*****************/
using System;
using SqlSugar;
namespace BookStores.Entity
{
    /// <summary>
    /// 数据表实体类：CustSerialNumber
    /// </summary>
    [Serializable]
    public partial class CustSerialNumber : Shared.Contracts.EntityBase
    {
        private string _ID;
        /// <summary>
        /// 序列号配置ID
        /// </summary>
        [SugarColumn(IsPrimaryKey = true)]
        public string ID 
        {
             get { return _ID; }
             set
             {
                AddPKChange("ID", _ID, value);
                _ID = value;
             }
        }
        private string _Serial_Num_Code;
        /// <summary>
        /// 序号代码
        /// </summary>
        public string Serial_Num_Code 
        {
             get { return _Serial_Num_Code; }
             set
             {
                AddPropertyChange("Serial_Num_Code");
                _Serial_Num_Code = value;
             }
        }
        private DateTime? _Sequence_Date;
        /// <summary>
        /// 序号创建日期
        /// </summary>
        public DateTime? Sequence_Date 
        {
             get { return _Sequence_Date; }
             set
             {
                AddPropertyChange("Sequence_Date");
                _Sequence_Date = value;
             }
        }
        private string _Expiry_Type;
        /// <summary>
        /// 序列期限类型: MI(分钟)/H(小时)/D(天)/W(周)/M(月)/Q(季度)/Y(年)
        /// </summary>
        public string Expiry_Type 
        {
             get { return _Expiry_Type; }
             set
             {
                AddPropertyChange("Expiry_Type");
                _Expiry_Type = value;
             }
        }
        private string _Prefix_Char;
        /// <summary>
        /// 序列号前缀
        /// </summary>
        public string Prefix_Char 
        {
             get { return _Prefix_Char; }
             set
             {
                AddPropertyChange("Prefix_Char");
                _Prefix_Char = value;
             }
        }
        private string _Number_System_Char;
        /// <summary>
        /// 进制的字符列表,计算序列的时候通过位数进行取值使用
        /// </summary>
        public string Number_System_Char 
        {
             get { return _Number_System_Char; }
             set
             {
                AddPropertyChange("Number_System_Char");
                _Number_System_Char = value;
             }
        }
        private string _DataString_Format;
        /// <summary>
        /// 序列号中日期格式
        /// </summary>
        public string DataString_Format 
        {
             get { return _DataString_Format; }
             set
             {
                AddPropertyChange("DataString_Format");
                _DataString_Format = value;
             }
        }
        private int? _Sequence_No;
        /// <summary>
        /// 当前序列号(当前可使用的值)
        /// </summary>
        public int? Sequence_No 
        {
             get { return _Sequence_No; }
             set
             {
                AddPropertyChange("Sequence_No");
                _Sequence_No = value;
             }
        }
        private int? _Sequence_Length;
        /// <summary>
        /// SEQUENCE_NO 栏位占用长度
        /// </summary>
        public int? Sequence_Length 
        {
             get { return _Sequence_Length; }
             set
             {
                AddPropertyChange("Sequence_Length");
                _Sequence_Length = value;
             }
        }
    }
}
